#pragma once
#include "afxcmn.h"
#include "afxwin.h"
#include "resizablepage.h"
#include "resizablepage.h"

// CPrefTab dialog

class CPrefTab : public CResizablePage
{
	DECLARE_DYNAMIC(CPrefTab)

public:
	CPrefTab();
	virtual ~CPrefTab();

// Dialog Data
	enum { IDD = IDD_PREFTAB };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnBnClickedDefault();
	afx_msg void OnBnClickedSave();
	afx_msg void OnBnClickedClearCache();
	afx_msg void OnBnClickedBrowseP2P();
	afx_msg void OnBnClickedBrowseCover();
	CEdit _editP2P;
	CEdit _editCover;
	CEdit _encoder;
	CEdit _copyright;
	CEdit _fileName;
	CComboBox _server;
	CButton _autoSearch;
	CButton _autoScan;
	CButton _results;
	virtual BOOL OnInitDialog();
	int setDefault(void);
	afx_msg void OnPaint();
	CString _registration;
	int _autoScanData;
	int _autoSearchData;
	CString _copyrightData;
	CString _editCoverData;
	CString _editP2PData;
	CString _encoderData;
	CString _fileNameData;
	int _resultsData;
	int _serverData;
	CString getServer(void);
	CString _name;
	CString _email;
	CString _key;
	int saveData(void);
	CButton _duplicate;
	CButton _onlyV1;
	int _onlyV1Data;
	int _duplicateData;
	CButton _existing;
	int _existingData;
	CButton _systray;
	int _systrayData;
	int _heigthData;
	CButton _trackFormat;
	int _trackFormatData;
	int _windowTop;
	int _windowLeft;
	int _mini;
	int _miniTop;
	int _miniLeft;
	CButton _onStartup;
	int _onStartupData;
	int LaunchOnStartup(int on);
	CButton _proxy;
	CEdit _proxyServer;
	int _proxyData;
	CString _proxyServerData;
	CButton _numFormat;
	int _numFormatData;
	CButton _coverArt;
	int _coverArtData;
	CButton _WMPCompatible;
	int _WMPCompatibleData;
	int _firstTime;
};
